-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Enable/disable Create Functions #7714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎨 [Frontend] Enable/disable Create Functions #7714
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables the dynamic disabling of the "Create Functions" section based on the backend plugin flag (WEBSERVER_FUNCTIONS).
- Updated the DisabledPlugins utility to include a new FUNCTIONS key and a corresponding method.
- Modified the ResourceDetails component to conditionally disable the "Create Functions" page based on the new flag.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/utils/DisabledPlugins.js | Added FUNCTIONS flag definition and isFunctionsDisabled method for handling plugin disabling. |
| services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js | Added conditional check to disable the Create Functions page when the FUNCTIONS plugin is disabled. |
services/static-webserver/client/source/class/osparc/utils/DisabledPlugins.js
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js
Show resolved
Hide resolved
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 7185458 |



What do these changes do?
This PR allows the backend disable the "Create Functions" section in the frontend by making the pluginsDisabled
WEBSERVER_FUNCTIONSflag truthy.Related issue/s
How to test
Dev-ops